package de.gameduell.framework.chat {

	/**
	 * Holds a simple chat message
	 */
	public class ChatMessage {
		
		private var _message:String;
		private var _user:String;
		private var _id:int;
		private var _timeStamp:String;
	
		public function ChatMessage(aId:int, aUser:String, aMessage:String){
			_message   = aMessage;
			_user      = aUser;
			_id        = aId;
			
			var aDate:Date = new Date();
			_timeStamp     = aDate.getHours() + ":"+ aDate.getMinutes();
		}
		
		public function get user():String{
			return _user;
		}
		
		public function get message():String{
			return _message; 
		}
		
		public function get id():int{
			return _id; 
		}
		
		public function get timeStamp():String{
			return _timeStamp; 
		}
	}
}
